package com.dc.excel.listener;

import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;
import com.dc.excel.model.WorkflowHouseSandModel;

import java.util.ArrayList;
import java.util.List;

public class WorkflowHouseSandExcelListener extends AnalysisEventListener<WorkflowHouseSandModel> {

    List<WorkflowHouseSandModel> results = new ArrayList<WorkflowHouseSandModel>();

    @Override
    public void invoke(WorkflowHouseSandModel workflowHouseSandModel, AnalysisContext analysisContext) {
        results.add(workflowHouseSandModel);
    }

    @Override
    public void doAfterAllAnalysed(AnalysisContext analysisContext) {

    }


    public List<WorkflowHouseSandModel> getResults() {
        return results;
    }
}
